package com.guiji.quartz.task;

import com.guiji.quartz.domain.Gadgets;
import com.guiji.quartz.domain.Gadgetsnow;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @program: cms-vue-plus
 * @description:
 * @author: gaoX
 * @date 2021/11/23 9:49
 */
@Component("gadgetsnowTask")
public class GadgetsnowTask {
	private static final Logger log = LoggerFactory.getLogger(GadgetsnowTask.class);
	public void gadgetsnowTask() throws Exception {
		Long startTime = System.currentTimeMillis();
		Gadgetsnow gadgetsnow = new Gadgetsnow();
		try {
			gadgetsnow.mainMethod();
		} catch (Exception e) {
		}finally {
			log.info("GadgetsnowTask-end-:{}",System.currentTimeMillis()-startTime);
		}

	}
}

